//
//  CommissionModeCell.m
//  EasyToTesco2.0
//
//  Created by 杨森 on 2017/3/22.
//  Copyright © 2017年 EasyToTesco. All rights reserved.
//

#import "CommissionModeCell.h"

@implementation CommissionModeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.iconImg = [[UIImageView alloc] init];
        [self addSubview:_iconImg];
        
        [_iconImg mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.mas_centerY);
            make.left.equalTo(self.mas_left).offset(15);
            make.width.height.mas_equalTo(30);
        }];
        
        
        
        self.NameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_NameLabel];
        _NameLabel.font = FONT(15);
        _NameLabel.textAlignment = NSTextAlignmentLeft;
        
        [_NameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(_iconImg.mas_centerY);
            make.left.equalTo(_iconImg.mas_right).offset(15);
            
        }];
        
        
         _numLabel= [[UILabel alloc] init];
        [self addSubview:_numLabel];
        _numLabel.font = FONT(14);
        _numLabel.textAlignment = NSTextAlignmentLeft;
        
        [_numLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(_iconImg.mas_centerY);
            make.left.equalTo(_iconImg.mas_right).offset(15);
            
        }];
        
    }
    return self;
}


@end
